!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("rb_wixui.thunderbolt[VerticalMenu_VerticalMenuSeparatedButtonFixedWidthSkin]",["react"],t):"object"==typeof exports?exports["rb_wixui.thunderbolt[VerticalMenu_VerticalMenuSeparatedButtonFixedWidthSkin]"]=t(require("react")):e["rb_wixui.thunderbolt[VerticalMenu_VerticalMenuSeparatedButtonFixedWidthSkin]"]=t(e.React)}("undefined"!=typeof self?self:this,(function(e){return function(e){function t(t){for(var r,a,u=t[0],l=t[1],c=t[2],p=0,f=[];p0&&(n=a(a(a([],c),n),[t]))}else n.push(t)})),n},l=function(e,t){return e.map((function(e){return i(i({},e),{items:l(e.items||[],t),selected:t.includes(e)})}))},c=function(e,t){var n=u(e,t);return l(t,n)},s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0;return o.a.createElement("li",{className:l.item,key:t},o.a.createElement("div",{"data-testid":h(t),className:y()(l.itemContentWrapper,e.selected&&l.selected,!Object(M.b)(e.link)&&l.noLink,j(g,t)&&l.itemHighlight)},o.a.createElement("span",{className:l.linkWrapper,onMouseEnter:function(){return w(t)},onFocus:function(){return w(t)},onMouseUp:x,onKeyUp:function(e){return 13===e.keyCode&&x()},onMouseOut:function(e){return!i(e)&&w(null)},onBlur:function(e){i(e)||w(null)}},o.a.createElement(M.a,_({dataTestId:d(t),className:l.label},e.link,{"aria-haspopup":!!a||void 0,tabIndex:0}),e.label,e.displayCount&&o.a.createElement("span",{className:l.displayCount},"(",e.displayCount,")"))),a&&(n=t,r=e.items,o.a.createElement("ul",{className:y()(l.subMenu,"top"===S?l.menuDirectionTop:l.menuDirectionBottom,"right"===s?l.menuSideRight:l.menuSideLeft),"data-testid":b(n),id:b(n)},r.map((function(e,t){return E(e,n+"-"+t)}))))),c&&o.a.createElement("div",{className:l.separator}))};return o.a.createElement("nav",{ref:m,"aria-label":a,id:i,className:l[n]+" "+l.autoHeight,onMouseEnter:p,onMouseLeave:f},o.a.createElement("ul",{className:l.menuContainer},t&&t.map((function(e,t){return E(e,t.toString())}))))},S=function(){return(S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n